import 'package:hc_voice_plugin/hc_voice_plugin.dart';

class HCBotTTS {
  Function? onSayingCompleted;

  Future<void> say(String phase, {bool isCompleted = true}) async {
    await HcVoicePlugin().speak(phase, isCompleted: isCompleted);
  }

  Future<void> pause() async {
    await HcVoicePlugin().sleep(isTtsStop: true);
  }

  Future<void> resume() async {
    await HcVoicePlugin().sleep(isTtsStop: false);
  }
}
